<?php
$cid        = gpc_getStringArray('cid');
$name       = "";

if(count($cid)==0)
{
    $cid[0]=$id;
}

foreach($cid as $id)
{
    //---------------Lay thong tin ve content sap xoa
    $sql_select = "SELECT * FROM tblsettourelm WHERE iId = $id";
    $rs=$dbsql->query($sql_select);
    if($result = $dbsql->fetch_array($rs))
    {
        $name       .= $result["cName"].', ';
    	$parentId    =$result['iParentId'];
    }
    //--------------Xoa content da duoc chi dinh
    $sql_delete = "DELETE FROM tblsettourelm WHERE iId = $id";
    $dbsql->query($sql_delete);
}
//------------------------------Tracking
Insert_Tracking("Del Content : $name ");

$msg = "Delete program tour success !";
page_transfer($msg,$pagetr);
exit();
?>